<?php

class CRedis{
	private $_handel = null;
	
	public function __construct($host = '127.0.0.1', $port = '6379') {
		$this->_handel = new Redis($host, $port);
		$this->_handel->connect($host, $port, 5);
	}
	
	public function __call($method, $args) {
		
		return call_user_func_array(array($this->_handel, $method), $args);
		
	}

}